#include <algorithm>
#include <cctype>
#include <string>
#include "Generators.h"
#include "PrintSequence.h"
using namespace std;

int main() {
  string v = "ggffeeddccbbaa";
  print(v.begin(), v.end(), "v original", "");
  string u(v.begin(), v.end());
  sort(u.begin(), u.end());
  print(u.begin(), u.end(), "u-sorted v", "") ;
  string::iterator it = unique(u.begin(), u.end()) ;
  print(u.begin(), u.end(), "u-unique: ", "") ;
  cout<< "*it=" << *it << endl ;

  string::iterator vit = remove(v.begin(), v.end(), 'f') ;
  print(v.begin(), v.end(), "v remove f", "") ;
  cout<< "*vit=" << *vit << endl ;


  return 0 ;
} ///:~
